/*
 * HttpRequest.cpp
 *
 */

#include "HttpRequest.h"

HttpRequest::HttpRequest(const std::string& uri, const std::string& protocVer):
uri(uri), protocolVersion(protocVer) {}

HttpRequest::~HttpRequest() {}

const std::string& HttpRequest::getUri() const {
	return uri;
}

std::string HttpRequest::getRequestLine() const {
	std::stringstream buffer;
	buffer << getMethod() << SP << getUri() << SP
			<< protocolVersion << CRLF;
	return buffer.str();
}

const std::string HttpRequest::GET = "GET";
const std::string HttpRequest::POST = "POST";
